package com.kun.music.dao;

import com.kun.music.domain.Consumer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ConsumerMapper {

    List<Consumer> allUser();

    int addUser(Consumer consumer);

    int deleteUser(@Param("id") Integer id);

    int updateUser(Consumer consumer);

    int updateUserPic(Consumer consumer);

    List<Consumer> getUserById(int id);

    int login(@Param("username") String username, @Param("password") String password);

    List<Consumer> loginStatus(String username);
}